﻿namespace Neovolve.Toolkit.Workflow.Design.Presentation
{
    using System;
    using System.Diagnostics;
    using Neovolve.Toolkit.Workflow.Activities;

    /// <summary>
    /// The <see cref="InstanceResolverDesigner"/>
    ///   class is used to provide design time support for the <see cref="InstanceResolver{T1,T2,T3,T4,T5,T6,T7,T8,T9,T10,T11,T12,T13,T14,T15,T16}"/> class.
    /// </summary>
    public partial class InstanceResolverDesigner
    {
        /// <summary>
        /// Initializes a new instance of the <see cref="InstanceResolverDesigner"/> class.
        /// </summary>
        [DebuggerNonUserCode]
        public InstanceResolverDesigner()
        {
            InitializeComponent();
        }
        
        /// <summary>
        /// Called when the model item has been changed.
        /// </summary>
        /// <param name="newItem">
        /// The new item.
        /// </param>
        protected override void OnModelItemChanged(Object newItem)
        {
            InstanceResolverDesignerExtension.Attach(ModelItem);

            base.OnModelItemChanged(newItem);
        }
    }
}